home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: using c & c++ with Solaris
- Date: 31 Jan 1996 17:05:35 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4eo7gv$jsi@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Jan 30, 1996 21:23:49 in article <using c & c++ with Solaris>,
- 'wryder@bones.wcupa.edu (William Ryder)' wrote:
-
-
- >I'm fairly new at using unix for c programming, and though this question
- >may reflect my newbie-ness, would anyone be so kind as to pardon my green
- >aura(?): if C++ is a superset of "C", why does "cc" (object oriented
- >compiler) choke when I sent it "C" language commands (like "printf")?
- >Should not all the libraries (etc.) be there? Or is this a system
- specific
- >problem (ie. - "specifically MY system?")
- >
- Need to be a little more specific -- what is the error message
- ("choke" leaves some to be desired in this respect).
-
- If you really are getting a compiler (as opposed to linker or runtime)
- error, then it's a good bet that you haven't included the necessary
- header files. This problem is not so much C vs. C++ as it is K&R and
- older C's vs. C++. Anyway, if you're using printf you need to
- #include <stdio.h>
-
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-